package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.EcologyPool;
import com.sc.nft.enums.EcologyPoolLinkTypeEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author 刘国航
 * @since 2024/7/15
 */
@Mapper
public interface EcologyPoolMapper extends BaseMapper<EcologyPool> {

    int reduceLikeCount(@Param("likeCount") BigDecimal likeCount, @Param("linkType") EcologyPoolLinkTypeEnum linkType, @Param("id") Long id, @Param("version") Integer version);

    int plusLikeCount(@Param("likeCount") BigDecimal likeCount, @Param("linkType") EcologyPoolLinkTypeEnum linkType, @Param("id") Long id, @Param("version") Integer version);
}
